/* ----------------------------------------------------------------------------------------------------------------
 * IAnimation
 * ----------------------------------------------------------------------------------------------------------------
 */
package pure.engine.renderer 
{
	
	/**
	 * 动画(渲染器)接口
	 * 
	 * @author Pure
	 */
public interface IAnimation extends IRenderer
{
	
	
	
	/**
	 * 更换片段
	 * 
	 * @param sectionName
	 **/
	function setSection(sectionName:String):void 
	function get section():String
		
	function get actionOrPointer():*
		
	 /**
	  * 播放
	  * 
	  * @param actionName
	  * @param onComplete
	  * @param args
	  */
	function play(actionOrPointer:*, onComplete:Function = null , ...rest ):void

	
	/**
	 * 播放并重复
	 * 
	 * @param actionName
	 */
	function playAndRepeat(actionName:String):void
	
	
	 /**
	  * 停止
	  * 
	  * @param isPaused
	  */
	function stop(isPaused:Boolean = false):void
	
	
	
	function get playing():Boolean
	

	function get playScale():Number
	function set playScale(value:Number):void
	
	
}
	
}